<div class="demo-wrap" style="width: 550px">
<link type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>templates/home/slide/bx.css" />
<link type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>templates/home/slide/reset.css" />
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script src="<?php  echo base_url(); ?>templates/home/slide/jquery.bxSlider.min.js" type="text/javascript"></script>
<script type="text/javascript" >
  $(document).ready(function(){
    $('#slider1').bxSlider();
  });
</script>
<div id="slider1">
<?php foreach ($advertise as $adv){?>
<?php if((int)$adv->adv_position == 5){?>
<div>
	<a>
		<img src="<?php echo base_url(); ?>media/banners/<?php echo $adv->adv_dir; ?>/<?php echo $adv->adv_banner; ?>" width="540px" height="270"/>
	</a>
</div>
<?php }?>
<?php }?>
 <!-- <div><a href="http://www.flickr.com/photos/jliba/4665625073/" title="145.365 - Happy Bokeh Thursday! | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-1.jpg" width="580" height="210" alt="Slide 1"></a></div>
					<div><a href="http://www.flickr.com/photos/stephangeyer/3020487807/" title="Taxi | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-2.jpg" width="580" height="210" alt="Slide 2"></a></div>
		 			<div><a href="http://www.flickr.com/photos/childofwar/2984345060/" title="Happy Bokeh raining Day | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-3.jpg" width="580" height="210" alt="Slide 3"></a></div>
					<div><a href="http://www.flickr.com/photos/b-tal/117037943/" title="We Eat Light | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-4.jpg" width="580" height="210" alt="Slide 4"></a></div>
					<div><a href="http://www.flickr.com/photos/bu7amd/3447416780/" title="�I must go down to the sea again, to the lonely sea and the sky; and all I ask is a tall ship and a star to steer her by.� | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-5.jpg" width="580" height="210" alt="Slide 5"></a></div>
					<div><a href="http://www.flickr.com/photos/streetpreacher/2078765853/" title="twelve.inch | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-6.jpg" width="580" height="210" alt="Slide 6"></a></div>
					<div><a href="http://www.flickr.com/photos/aftab/3152515428/" title="Save my love for loneliness | Flickr - Photo Sharing!" target="_blank"><img src="http://slidesjs.com/examples/standard/img/slide-7.jpg" width="580" height="210" alt="Slide 7"></a></div> -->
</div>
</div>